package com.zh.ssmshirofreemarker.service;

import com.zh.ssmshirofreemarker.entity.RolePermission;
import com.baomidou.mybatisplus.service.IService;
import com.zh.ssmshirofreemarker.entity.User;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZH
 * @since 2018-07-24
 */
public interface IRolePermissionService extends IService<RolePermission> {

    public Set<String> getPermissionByUserName(User user);

    public List<Map<String,Object>> getAllPermissionsAndSignIsCheck(Long permissionId);

    boolean bindPermission(Long roleId, List<Long> permissionIds);

    List<Long> getPermissionsByRoleId(Long roleId);
}
